﻿//
//  Copyright (c) 2009 Liang Quan Qing.
//  All rights reserved.
// 
//  Redistribution and use in source and binary forms, with or without
//  modification, are permitted provided that the following conditions
//  are met:
//  1. Redistributions of source code must retain the above copyright
//     notice, this list of conditions and the following disclaimer.
//  2. Redistributions in binary form must reproduce the above copyright
//     notice, this list of conditions and the following disclaimer in the
//     documentation and/or other materials provided with the distribution.
// 
//  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
//  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
//  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
//  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
//  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
//  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
//  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
//  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
//  SUCH DAMAGE.
//

#ifndef FASTCONV_CP1252_H_33CA147F58C54665943D91B63E219E0C
#define FASTCONV_CP1252_H_33CA147F58C54665943D91B63E219E0C

int cp1252_GetFirstCharLength(const char *s);
int cp1252_IsLeadByte(const char *s);
int cp1252_t16( fcnv_t*     pfcnv, 
                const char* srcString, 
                size_t      srcSizeInBytes, 
                WChar_t *   pBuffer, 
                size_t      destSizeInWChars);
int cp1252_f16( fcnv_t*     pfcnv, 
                const WChar_t* srcString, 
                size_t      srcSizeInWChars, 
                char *      pBuffer,
                size_t      destSizeInBytes);
int cp1252_t8(  fcnv_t*     pfcnv, 
                const char* srcString, 
                size_t      srcSizeInBytes, 
                char *      pBuffer, 
                size_t      destSizeInBytes);
int cp1252_f8(  fcnv_t*     pfcnv, 
                const char* srcString, 
                size_t      srcSizeInBytes, 
                char *      pBuffer, 
                size_t      destSizeInBytes);
int cp1252_t32( fcnv_t*     pfcnv, 
                const char* srcString, 
                size_t      srcSizeInBytes, 
                DChar_t *   pBuffer, 
                size_t      destSizeInDChars);
int cp1252_f32( fcnv_t*     pfcnv, 
                const DChar_t*srcString, 
                size_t      srcSizeInDChars, 
                char *      pBuffer, 
                size_t      destSizeInBytes);




#endif  //FASTCONV_CP1252_H_33CA147F58C54665943D91B63E219E0C
